----------------------------------Spell Variables--------------------------------------
SPELL.m_iSpellID = 511 -- Whatever value you want as long as it doesn't override any other spells' IDs.
SPELL.m_iRange = 0
SPELL.m_sName = "Bull Rush"
SPELL.m_sToolTip = [[You charge forwards, increasing 
					your movement speed by 150% for
					2 seconds.]]
SPELL.m_sIcon = "devin/blackbetty/spells/warrior/rush.png"
SPELL.m_iCoolDown = 5
SPELL.m_iManaCost = 0
SPELL.m_bRequiresTarget = false
SPELL.m_iSpellType = SPELLTYPE_MOBILITY
SPELL.m_bRecastWhileCasting = false

---------------------------------------------------------------------------------------

local range = 100
local weapondamage = 20

function SPELL:Cast( pl, target )
	print("Casted "..self.m_sName.."!")
	pl:EmitSound("devin/blackbetty/player/male/swing_common"..math.random(1,3)..".wav", 100, 100+math.random(-1, -5))
	pl:EmitSound("devin/blackbetty/weapons/BullRush.wav", 100, 100)
	pl.Speed = true 
	pl.SpeedMod = 8
	pl.SpeedModDuration = 0.3
	pl.SpeedType = "Charge"
	timer.Simple(0.05, function()
	pl:SetNWBool("Casting", false) 
	pl:SetNWBool("Casted", false)
	end)
end



